﻿using IService.Main;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model.Login;
using Model.Main;

namespace Service.Main
{
    public class MainService : IMainService
    {
        public ObservableCollection<FriendGroup> GetFriends(string userId)
        {
            return new ObservableCollection<FriendGroup>(new List<FriendGroup>
            {
                new FriendGroup()
                {
                    GroupId=10000,GroupName="星际争霸",
                    Friends=new ObservableCollection<Friend>
                    (new List<Friend>()
                    {
                        new Friend() {NickName="James Raynor",RemarkName="吉姆雷诺",UserId="100001",Emotion="有点儿过去的样子"},
                        new Friend() {NickName="Nova",RemarkName="诺娃",UserId="100002",Emotion="诺娃在此!"},
                        new Friend() {NickName="Artanis",RemarkName="阿塔尼斯",UserId="100003",Emotion="EnTaro Tasadar"},
                        new Friend() {NickName="Artanis",RemarkName="卡拉克斯",UserId="100004",Emotion="以艾顿之名!"},
                        new Friend() {NickName="Kerrigan",RemarkName="凯瑞甘",UserId="100005",Emotion="我即是虫群"},
                        new Friend() {NickName="Zeratul",RemarkName="泽拉图",UserId="100006",Emotion="追寻预言的真相"},
                        new Friend() {NickName="Vorazun",RemarkName="沃拉尊",UserId="100007" }
                    })
                },
                new FriendGroup()
                {
                    GroupId=10000,GroupName="魔兽世界",
                    Friends=new ObservableCollection<Friend>
                    (new List<Friend>()
                    {
                        new Friend() {NickName="Thrall",RemarkName="萨尔",UserId="100001",Emotion="部落需要你!"},
                        new Friend() {NickName="Jaina Proudmoore",RemarkName="吉安娜·普罗德摩尔",UserId="100002",Emotion="你这是自找的!"},
                        new Friend() {NickName="Illidan Stormrage",RemarkName="伊利丹·怒风",UserId="100003",Emotion="你们这是自寻死路!"},
                        new Friend() {NickName="Grom·Hellscream",RemarkName="格罗玛什·地狱咆哮",UserId="100004",Emotion="兽人永不为奴!"},
                        new Friend() {NickName="Arthas Menethil",RemarkName="阿尔萨斯·米奈希尔",UserId="100005"},
                        new Friend() {NickName="Chen Stormstout",RemarkName="陈·风暴烈酒",UserId="100006",Emotion="亲人,美食,这才是最重要的"},
                    })
                }
            });
        }

        public UserInfo GetUserInfo(string userId)
        {
            return new UserInfo
            {
                Emotion = "Good day!,isn't it?",
                UserId = "100000",
                UserName = "BlueRocks"
            };
        }
    }
}
